<script>
export default {
  name: "sonCom",
  props: {
    type2: [Number, String],
    type1: {
      type: [String, Number, Boolean, Array, Object],

      default: () => {
        return [1, 2]
      }
    }
  },
  created() {
    console.log('测试' + this.type1)
  }
}
</script>

<template>
  <div>
    sonsonsonson
    {{ type1 }}
  </div>
</template>

<style scoped lang="less">

</style>